package com.ruiaa.meeting.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author chenhuaiyi
 * @date 2022-11-05 15:13
 */
@Data
@TableName("meetingroom")
public class MeetingRoom {

    @TableId(type = IdType.INPUT)
    @NotNull(message = "会议室号不能为空")
    @TableField(value = "room_id")
    private Integer roomId;

    @NotNull(message = "会议室状态不能为空")
    private Integer state;

    @NotNull(message = "容纳人数不能为空")
    private Integer number;

    @NotBlank(message = "会议室名称不能为空")
    @TableField(value = "room_name")
    private String roomName;
}
